package com.ojoin.trade.supplyloan_core.web.domain;

import com.ojoin.trade.common.web.domain.IDentifiable;

import java.util.Date;

public class TbSlLoanStatTotal implements IDentifiable {
    /**
	 * 
	 */ 

	private static final long serialVersionUID = 1L;

	private Integer id;

    private Integer idOfTbMerchantUser;

    private String platformName;

    private Integer idOfPlatformUser;

    private long totalUnsettleInstoreorder;

    private long totalUnenterinRefundorder;

    private long totalUnpaySettleorder;
    
    private long totalUnpaySettleorderCheck;
    
    private long totalPaySettleorder;
    
    private long newUnsettleInstoreorder;

    private long newUnenterinRefundorder;

    private long newUnpaySettleorder;
     
    private long newUnpaySettleorderCheck;
    
    private long newPaySettleorder;

    private String statEndDate;

    private Date rowUpdateTime;

    private Date rowCreateTime;
    
	private long totalAll;

 // 按不同的平台进行数据的显示
 	public long getTotalAll() {

 		if (TbSlPlatformInfo.SUPPLIER_SUNING.equals(this.getPlatformName())) {
 			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
 					- this.getTotalPaySettleorder();
 		} else if (TbSlPlatformInfo.THIRDSELLER_SUNING.equals(this.getPlatformName())) {
 			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
 					- this.getTotalPaySettleorder() +this.getTotalUnpaySettleorderCheck()+ this.getTotalUnpaySettleorder();
 		} else {
 			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
 					- this.getTotalPaySettleorder() + this.getTotalUnpaySettleorderCheck()+this.getTotalUnpaySettleorder();
 		}

 		return totalAll;
 	}


	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIdOfTbMerchantUser() {
        return idOfTbMerchantUser;
    }

    public void setIdOfTbMerchantUser(Integer idOfTbMerchantUser) {
        this.idOfTbMerchantUser = idOfTbMerchantUser;
    }

    public String getPlatformName() {
        return platformName;
    }

    public void setPlatformName(String platformName) {
        this.platformName = platformName == null ? null : platformName.trim();
    }

    public Integer getIdOfPlatformUser() {
        return idOfPlatformUser;
    }

    public void setIdOfPlatformUser(Integer idOfPlatformUser) {
        this.idOfPlatformUser = idOfPlatformUser;
    }

   

    public String getStatEndDate() {
        return statEndDate;
    }

    public void setStatEndDate(String statEndDate) {
        this.statEndDate = statEndDate == null ? null : statEndDate.trim();
    }

    public Date getRowUpdateTime() {
        return rowUpdateTime;
    }

    public void setRowUpdateTime(Date rowUpdateTime) {
        this.rowUpdateTime = rowUpdateTime;
    }

    public Date getRowCreateTime() {
        return rowCreateTime;
    }

    public void setRowCreateTime(Date rowCreateTime) {
        this.rowCreateTime = rowCreateTime;
    }

	@Override
	public String getTableName() {
		return "tb_sl_loan_stat_total";
	}

	public long getTotalUnsettleInstoreorder() {
		return totalUnsettleInstoreorder;
	}

	public void setTotalUnsettleInstoreorder(long totalUnsettleInstoreorder) {
		this.totalUnsettleInstoreorder = totalUnsettleInstoreorder;
	}

	public long getTotalUnenterinRefundorder() {
		return totalUnenterinRefundorder;
	}

	public void setTotalUnenterinRefundorder(long totalUnenterinRefundorder) {
		this.totalUnenterinRefundorder = totalUnenterinRefundorder;
	}

	public long getTotalUnpaySettleorder() {
		return totalUnpaySettleorder;
	}

	public void setTotalUnpaySettleorder(long totalUnpaySettleorder) {
		this.totalUnpaySettleorder = totalUnpaySettleorder;
	}

	public long getTotalPaySettleorder() {
		return totalPaySettleorder;
	}

	public void setTotalPaySettleorder(long totalPaySettleorder) {
		this.totalPaySettleorder = totalPaySettleorder;
	}

	public long getNewUnsettleInstoreorder() {
		return newUnsettleInstoreorder;
	}

	public void setNewUnsettleInstoreorder(long newUnsettleInstoreorder) {
		this.newUnsettleInstoreorder = newUnsettleInstoreorder;
	}

	public long getNewUnenterinRefundorder() {
		return newUnenterinRefundorder;
	}

	public void setNewUnenterinRefundorder(long newUnenterinRefundorder) {
		this.newUnenterinRefundorder = newUnenterinRefundorder;
	}

	public long getNewUnpaySettleorder() {
		return newUnpaySettleorder;
	}

	public void setNewUnpaySettleorder(long newUnpaySettleorder) {
		this.newUnpaySettleorder = newUnpaySettleorder;
	}

	public long getNewPaySettleorder() {
		return newPaySettleorder;
	}

	public void setNewPaySettleorder(long newPaySettleorder) {
		this.newPaySettleorder = newPaySettleorder;
	}

	public long getTotalUnpaySettleorderCheck() {
		return totalUnpaySettleorderCheck;
	}

	public void setTotalUnpaySettleorderCheck(long totalUnpaySettleorderCheck) {
		this.totalUnpaySettleorderCheck = totalUnpaySettleorderCheck;
	}

	public long getNewUnpaySettleorderCheck() {
		return newUnpaySettleorderCheck;
	}

	public void setNewUnpaySettleorderCheck(long newUnpaySettleorderCheck) {
		this.newUnpaySettleorderCheck = newUnpaySettleorderCheck;
	}

	
	
}